import request from '@/utils/request'

// 查询补发师评价信息列表
export function listHairTeacherEvaluate(query) {
  return request({
    url: '/business/hairTeacherEvaluate/list',
    method: 'get',
    params: query
  })
}

// 查询补发师评价信息详细
export function getHairTeacherEvaluate(id) {
  return request({
    url: '/business/hairTeacherEvaluate/' + id,
    method: 'get'
  })
}

// 新增补发师评价信息
export function addHairTeacherEvaluate(data) {
  return request({
    url: '/business/hairTeacherEvaluate',
    method: 'post',
    data: data
  })
}

// 置顶评价
export function topEvaluate(query) {
  return request({
    url: '/business/hairTeacherEvaluate/topEvaluate',
    method: 'post',
    params: query
  })
}

// 修改补发师评价信息
export function updateHairTeacherEvaluate(data) {
  return request({
    url: '/business/hairTeacherEvaluate',
    method: 'put',
    data: data
  })
}

// 删除补发师评价信息
export function delHairTeacherEvaluate(id) {
  return request({
    url: '/business/hairTeacherEvaluate/' + id,
    method: 'delete'
  })
}
